package com.tjetc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("food_record")
public class FoodRecord {
    @TableId(value = "record_id", type = IdType.AUTO)
    private Long recordId;

    @TableField("elderly_id")
    private Long elderlyId;
    @TableField(exist = false)
    private ElderInfo elder;

    @TableField("meal_id")
    private Long mealId;
    @TableField(exist = false)
    private FoodContent foodContent;

    private LocalDate date;

    @TableField("meal_time")
    private LocalTime mealTime;

    private Short status;

    private String feedback;
    @TableField("caregiver_id")
    private Long caregiverId;
    @TableField(exist = false)
    private CaregiverInfo caregiver;

    @TableField("is_deleted")
    private Short isDeleted;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;
    public Long getRecordId() {
        return recordId;
    }

    public void setRecordId(Long recordId) {
        this.recordId = recordId;
    }

    public ElderInfo getElder() {
        return elder;
    }

    public void setElder(ElderInfo elder) {
        this.elder = elder;
    }

    public FoodContent getFoodContent() {
        return foodContent;
    }

    public void setFoodContent(FoodContent foodContent) {
        this.foodContent = foodContent;
    }

    public CaregiverInfo getCaregiver() {
        return caregiver;
    }

    public Long getElderlyId() {
        return elderlyId;
    }

    public void setElderlyId(Long elderlyId) {
        this.elderlyId = elderlyId;
    }

    public Long getMealId() {
        return mealId;
    }

    public void setMealId(Long mealId) {
        this.mealId = mealId;
    }

    public Long getCaregiverId() {
        return caregiverId;
    }

    public void setCaregiverId(Long caregiverId) {
        this.caregiverId = caregiverId;
    }

    public void setCaregiver(CaregiverInfo caregiver) {
        this.caregiver = caregiver;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    public LocalTime getMealTime() {
        return mealTime;
    }

    public void setMealTime(LocalTime mealTime) {
        this.mealTime = mealTime;
    }

    public Short getStatus() {
        return status;
    }

    public void setStatus(Short status) {
        this.status = status;
    }

    public String getFeedback() {
        return feedback;
    }

    public void setFeedback(String feedback) {
        this.feedback = feedback;
    }

    public Short getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Short isDeleted) {
        this.isDeleted = isDeleted;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
}